<template>
    <el-card>
        <div class="box">
            <img :src="userStore.avatar" alt="" class="avator">
            <div class="bottom">
                <h3 class="title">{{ getTime() + '好呀!' + userStore.username }}</h3>
                <p class="subtitle">{{ setting.title }}</p>
            </div>
        </div>
    </el-card>
    <div class="bot">
        <SvgIcon name="welcome" width="600px" height="300px"></SvgIcon>
    </div>
</template>

<script lang="ts" setup name="Home">
// 引入用户仓库
import useUserStore from '@/store/modules/user'
import { getTime } from '@/utills/time'
import setting from '@/setting'

// 获取用户仓库
let userStore = useUserStore()
</script>

<style scoped lang="scss">
.box {
    display: flex;
}

.avator {
    width: 100px;
    height: 100px;
    border-radius: 50%;
}

.bottom {
    margin-left: 20px;
}

.title {
    font-size: 30px;
    font-weight: 900;
    margin-bottom: 30px;
}

.subtitle {
    font-style: italic;
    color: skyblue
}

.bot {
    margin-top: 20px;
    display: flex;
    justify-content: center;
}
</style>